<template>
    <div>
        <h2 align="center">注册页面</h2>
        <table class="table table-bordered">
            <tr>
                <td>用户名</td>
                <td>
                    <input type="text">
                </td>
            </tr>
            <tr>
                <td>密码</td>
                <td>
                    <input type="password">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" value="注册" @click="funLogin">
                </td>
            </tr>
        </table>
    </div>
</template>


<script setup lang="ts">
import axios from 'axios'
import {  useRoute,useRouter } from 'vue-router'

const router = useRouter()//跳转
const route = useRoute()//传值

const funLogin = ()=>{
    alert('注册成功')
    router.push('logon')
}
</script>


<style scoped>

</style>